package reflection;

import java.lang.reflect.Method;

/**
 * @author Administrator
 * @decription
 * @Date 2018-02-26 8:53
 */
public class TestMethod {
    public static void main(String[] args) {
        Class myClass = MyObject.class;

        Method[] methods = myClass.getMethods();

        for (Method method : methods) {
            System.out.println(method.getName());
        }
    }
}
